<!DOCTYPE HTML>
<html>
   <head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>知果汇</title>
		<link href="_CSS_/bootstrap.min.css" rel="stylesheet">
		<link href="_CSS_/simple-line-icons.css" rel="stylesheet">
		<link href="_CSS_/font-awesome.min.css" rel="stylesheet">
		<link href="_CSS_/jasny-bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="_CSS_/nanoscroller.css">
		<link href="_CSS_/style.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="_CSS_/jquery-ui.css">
		<!--[if lt IE 9]>
		  <script src="js/html5shiv.min.js"></script>
		  <script src="js/respond.min.js"></script>
		<![endif]-->
		<style type="text/css">
		    body{background-color: #ffffff;min-width: 600px;}
			.row{margin-left: 0px;margin-right: 0px;min-width: 600px;}
			.form .row {margin-top: 5px;}
			p{margin: 0;}
			.form .row img{width: 128px;height: 128px;margin-bottom: 5px;}
			.formControls {padding-right: 10px;}
			.radio-box{display:inline-block;width: 64px;}
			.formControls{padding-right:50px; position: relative;}
			.textarea {height: 100px;resize: none;font-size: 14px;padding: 4px;}
            .textarea-numberbar {position: absolute;right: 70px;bottom: 5px;z-index: 1;margin-bottom: 0;}
		</style>
    </head>
	<body>
	<article class="page-container">
		<form class="form form-horizontal" id="form-admin-add">
		    <div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">商品名称：</label>
				<div class="formControls col-xs-10 col-sm-10">
					<p></p>
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">店铺名：</label>
				<div class="formControls col-xs-10 col-sm-10">
					<p></p>
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">类别：</label>
				<div class="formControls col-xs-10 col-sm-10">
					<p></p>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">交易方式：</label>
				<div class="formControls col-xs-10 col-sm-10 skin-minimal">
					<p>普通许可</p>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">价格：</label>
				<div class="formControls col-xs-10 col-sm-10">
					<p>￥340000.00</p>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">商品描述：</label>
				<div class="formControls col-xs-10 col-sm-10">
					<p>封性能和保温性能。</p>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">商品图片：</label>
				<div class="formControls col-xs-10 col-sm-10"> <span class="select-box" style="width:150px;">
					<!--<img src="images/avtar-1.jpg">-->
					<!--<img src="images/avtar-1.jpg">-->
					<!--<img src="images/avtar-1.jpg">-->
					<!--<img src="images/avtar-1.jpg">-->
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">发布时间：</label>
				<div class="formControls col-xs-10 col-sm-10">
                    <p></p>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-2 col-sm-2">状态：</label>
				<div class="formControls col-xs-10 col-sm-10">
                    <p>待审核</p>
				</div>
			</div>
		</form>
	</article>

    <script src="_JS_/jquery.min.js"></script>
    <script src="_JS_/bootstrap.min.js"></script>
    <script src="_JS_/jasny-bootstrap.min.js"></script>
    <script src="_JS_/jquery.slimscroll.min.js"></script>
    <script src="_JS_/jquery.nanoscroller.min.js"></script>
    <script src="_JS_/metismenu.min.js"></script>
    <script src="_JS_/float-custom.js"></script>
	<script src="_JS_/getMyDate.js"></script>
	<script type="text/javascript">
		$(function(){
			var url=window.location.href;
			 id = url.split("#")[1];
			$.ajax({
				type: "get",
				url: "/index.php/api/service/goods_detail",
				data: {'id': id},
				dataType: 'jsonp',
				success: function (msg) {
					if (msg.code == 200) {
						$('.formControls').eq(0).find('p').html(msg.data.goods_name);
						$('.formControls').eq(1).find('p').html(msg.data.shop_name);
						$('.formControls').eq(2).find('p').html(msg.data.t_name);
						$('.row').eq(3).hide();
						$('.formControls').eq(4).find('p').html('￥'+msg.data.price);
						$('.formControls').eq(5).find('p').html(msg.data.content);
						$('.formControls').eq(6).append('<img src="/Images/serviceGoods/'+msg.data.pic+'">');
						var t_time=getMyDate(msg.data.add_time*1000);
						$('.formControls').eq(7).find('p').html(t_time);
						if(msg.data.status=='1'){
							$('.formControls').eq(8).find('p').html('审核通过');
						}else if(msg.data.status=='3'){
							$('.form-label').eq(8).html('审核不通过:');
							$('.formControls').eq(8).find('p').html(msg.data.reason);
						}else{
							$('.formControls').eq(8).find('p').html('待审核');
						}
					}
				}
			});
		})
	</script> 
</body>
</html>